if (!this._cancellable || this._cancellable.is_cancelled())
return;
- if (!this._animation.duration)
+ if (!this._animation.transitionDuration)
return;
let nSteps = 255 / ANIMATION_OPACITY_STEP_INCREMENT;
- let timePerStep = (this._animation.duration * 1000) / nSteps;
+ let timePerStep = (this._animation.transitionDuration * 1000) / nSteps;
let interval = Math.max(ANIMATION_MIN_WAKEUP_INTERVAL * 1000,
timePerStep);
this.filename = params.filename;
this.keyFrameFiles = [];
- this.duration = 0.0;
this.transitionProgress = 0.0;
+ this.transitionDuration = 0.0;
this.loaded = false;
},
this._show.load_async(null,
Lang.bind(this,
function(object, result) {
- this.duration = this._show.get_total_duration();
this.loaded = true;
if (callback)
callback();
let [progress, duration, isFixed, file1, file2] = this._show.get_current_slide(monitor.width, monitor.height);
+ this.transitionDuration = duration;
this.transitionProgress = progress;
if (file1)